package com.pz.cloud.framework.business.leagueMem.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.pz.cloud.framework.base.model.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import org.jeecg.common.aspect.annotation.Dict;
import org.jeecgframework.poi.excel.annotation.Excel;
import org.springframework.format.annotation.DateTimeFormat;

import java.math.BigDecimal;
import java.util.Date;

/**
 * @Description: 团员处分
 * @Author: jeecg-boot
 * @Date:   2020-12-05
 * @Version: V1.0
 */
@Data
@TableName("league_mem_punishment")
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = false)
@ApiModel(value="团员处分", description="团员处分")
public class LeagueMemPunishment extends BaseEntity {
    @ApiModelProperty("主键")
    private String id;

    @Excel(name = "团员ID", width = 15)
    @ApiModelProperty("团员ID")
    private String memId;

    @Excel(name = "处分种类", width = 15)
    @ApiModelProperty("处分种类")
    @Dict(dicCode = "demerit")
    private String demerit;

    @Excel(name = "处分原因", width = 15)
    @ApiModelProperty("处分原因")
    private String reason;

    @Excel(name = "文件号", width = 15)
    @ApiModelProperty("文件号")
    private String docNo;

    @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd")
    @DateTimeFormat(pattern="yyyy-MM-dd")
    @Excel(name = "处分开始时间", width = 15)
    @ApiModelProperty("处分开始时间")
    private Date startTime;

    @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd")
    @DateTimeFormat(pattern="yyyy-MM-dd")
    @Excel(name = "处分结束时间", width = 15)
    @ApiModelProperty("处分结束时间")
    private Date endTime;

    /**用户id*/
    @ApiModelProperty(value = "用户id")
    @TableField(exist = false)
    private String userId;

    /**学号*/
    @Excel(name = "学号", width = 15)
    @ApiModelProperty(value = "学号")
    @TableField(exist = false)
    private String stdNo;

    /**姓名*/
    @Excel(name = "姓名", width = 15)
    @ApiModelProperty(value = "姓名")
    @TableField(exist = false)
    private String realname;

    /**学院*/
    @Excel(name = "学院", width = 15)
    @ApiModelProperty(value = "学院")
    @TableField(exist = false)
    private String college;

    /**专业*/
    @Excel(name = "专业", width = 15)
    @ApiModelProperty(value = "专业")
    @TableField(exist = false)
    private String major;

    /**年级*/
    @Excel(name = "年级", width = 15)
    @ApiModelProperty(value = "年级")
    @TableField(exist = false)
    private String grade;

    /**班级*/
    @Excel(name = "班级", width = 15)
    @ApiModelProperty(value = "班级")
    @TableField(exist = false)
    private String clazz;

    /**政治面貌*/
    @Excel(name = "政治面貌", width = 15, dicCode = "political_outlook")
    @Dict(dicCode = "political_outlook")
    @ApiModelProperty(value = "政治面貌")
    @TableField(exist = false)
    private String politicalStatus;

    /**职务*/
    @Excel(name = "职务", width = 15)
    @Dict(dicCode = "league_position")
    @ApiModelProperty(value = "职务")
    @TableField(exist = false)
    private String position;

    /**毕业状态*/
    @Excel(name = "毕业状态", width = 15, dicCode = "graduate")
    @Dict(dicCode = "graduate")
    @ApiModelProperty(value = "毕业状态")
    @TableField(exist = false)
    private String graduateStatus;

    /**入团时间*/
    @Excel(name = "入团时间", width = 15, format = "yyyy-MM-dd")
    @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd")
    @DateTimeFormat(pattern="yyyy-MM-dd")
    @ApiModelProperty(value = "入团时间")
    @TableField(exist = false)
    private Date joinTime;

}
